home *** CD-ROM | disk | FTP | other *** search
- Path: newton.uncg.edu!news
- From: codyax@homans (cody)
- Newsgroups: comp.lang.c++
- Subject: Re: Need Help!! BC++ 4.52 DPMI32 problem!
- Date: 17 Apr 1996 14:16:11 GMT
- Organization: The University of NC at Greensboro
- Message-ID: <4l2ufb$68j@newton.uncg.edu>
- References: <4krk5j$bq@heracles.net2.kosone.com>
- NNTP-Posting-Host: al_cody.uncg.edu
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.7
-
- In article <4krk5j$bq@heracles.net2.kosone.com>, nrgetik@limestone.kosone.com
- says...
- >
- >HELP!!!
- >
- >I'm relatively new to C, and am having a strange problem.
- >I've just started playing around with protected mode, and have
- >been having success with 16-bit pmode stuff. Whenever I try to
- >use 32-bit pmode, I am stopped dead in my tracks. I'm using
- >Borland C++ 4.52, with the Dos PowerPack v1.0
- >
- >Just as a test, I wrote a simple prog :
- >
- >#include <stdio.h>
- >#include <conio.h>
- >
- >void main()
- >{
- > printf("Hello!");
- > getch();
- >}
- >
- >This compiles fine under DOS(STANDARD) and DOS(16-bit DPMI)
- >but when I compile under DOS(32-bit DPMI) I get this error:
- >
- >This program cannot be run in DOS mode.
- >(Load error 85)
- >32stub error: The program can not be loaded
- >
- >
- >I checked out Borland's web site (to no avail) and
- >cannot find any info on this.
- >
- >If anyone has seen this before, I would appreciate any
- >help or insight.
- >
- >Thanks in advance.
- >-Steve
- Steve,
- I believe you have used a function not supported by
- Win32s (Win 95). Check out page 14 of User's Guide for PowerPack.
- There is a table starting on pg.93 that tell which functions are
- availible under a given os. The offending function is getch().
- Hope this helps.
- al
-
-